Add some docs on lex syntax#637
Merged
ltratt merged 1 commit intosoftdevteam:masterfrom May 4, 2026
Merged
Conversation
ltratt
reviewed
May 4, 2026
Member
ltratt
left a comment
There was a problem hiding this comment.
With a couple of quick edits, I think getting this in one would be good!
|
|
||
| ## Rules | ||
|
|
||
| Each rule is given by |
Member
There was a problem hiding this comment.
I think this should end in : and the following bits be an itemised list? Though "State operator" may well be best left in a subsubsection "State operator\n\nOptionally, a start state can be ..." etc.
Collaborator
Author
There was a problem hiding this comment.
I updated some text too, but I tried leaving state operator as an itemized list.
It seemed okay with the list being in a paragraph? Let me know what you think.
|
|
||
| The end of line finishes a rule. | ||
|
|
||
| ## UserSubroutines |
Member
|
Thanks! Please squash. |
Collaborator
Author
|
Squashed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I was looking to fix #597 by documenting the limitation of not having spaces in token names
there was one place in the major differences section where it mentions token names, but doesn't define them explicitly.
I figured it might be good to just add a node on lex syntax. Here was a very quickly thrown together overview of the lex syntax to test out whether we like that idea, and if it's worth expanding upon.
I didn't go through and document quirks though like regexes with trailing spaces or anything, not sure if we need to.